package com.bonc.utils;

/**
 * @author lenovo
 * @Title
 * @Description
 * @date 2021/7/27 11:25
 */
public class Constants {

    public enum PageInfo {
        SUCCESS(200, "成功"),
        PAGE_NOT_FOUND(404, "找不到页面"),
        SYSTEM_ERROR(500, "服务器异常"),
        AUTH_NOT_EOUGHT(503, "用户没有权限"),
        ELSE_ERROR(506, "未知异常");
        private Integer code;

        private String message;

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        PageInfo(Integer code, String message) {
            this.code = code;
            this.message = message;
        }
        PageInfo(){}
    }
}
